package com.goodfather.textbook.youdao.pad.util;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.goodfather.textbook.youdao.pad.ui.BookDetailActivity;


/**
 * @Description:
 * @Author: zhou
 * @CreateDate: 2021/10/13
 */
public class JumpUtil {

    public static void gotoBookDetail(Activity activity, String providerClickMode,String bookId, String publishingId, String subjectId,String lessonId,String providerUserID) {
        Intent intent = new Intent(activity, BookDetailActivity.class);
        Bundle bundle = new Bundle();
        bundle.putString("providerClickMode", providerClickMode);
        bundle.putString("bookId", bookId);
        bundle.putString("publishingId", publishingId);
        bundle.putString("subjectId", subjectId);
        bundle.putString("lessonId", lessonId);
        bundle.putString("providerUserID", providerUserID);
        intent.putExtras(bundle);
        activity.overridePendingTransition(0, 0);
        activity.startActivity(intent);
    }
}
